package org.prosim.user.dao;

import java.util.List;

import org.hibernate.Criteria;
import org.prosim.persistence.HibernateDao;
import org.prosim.user.entity.Role;
import org.springframework.stereotype.Repository;

@Repository
public class RoleDao extends HibernateDao<Role, Integer> {

	
	@SuppressWarnings("unchecked")
	public List<Role> getAllRole() {
		Criteria criteria = createCriteria();
		return distinct(criteria).list();
	}
	
	
}
